package com.systemsetup.systemsetup.web.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systemsetup.systemsetup.model.Organization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrganizationMapper extends BaseMapper<Organization> {

    /**
     * 获取所有机构id
     * @return
     */
    List<Organization> getOrganizationsId();

    /**
     * 获取所有机构
     * @return
     */
    List<Organization> getOrganizations(JSONObject jsonObject);



    List<Organization> getOrgList();

    List<Organization> getOrgListId();

    void updateDeviceBusinessAllId(String allId,String orgId);

    void updateBusinessAllId(String allId,String orgId);

    void updateOrganizationAllId(String allId,String orgId);
}
